<?php $this->load->view("general/header");?>

<div id="search_result" class="page_">
    <div class="form">            	
    	<div class="form_header">Pendaftaran Pegawai</div>
        <div id="admin_registration" class="content_data">
       	<form method="post" action="<?php echo base_url();?>admin/manage_admin">
            <div class="title">Username</div>
            <div class="input">
                <input type="text" name="username" value="<?php echo set_value('username'); ?>" />
            </div>
            <div class="errorField"><?php echo str_replace("The","",str_replace("field","",form_error('username'))); ?></div>
            <div class="clear"></div>
            <div class="title">Password</div>
            <div class="input">
                <input type="password" name="password" />
            </div>
            <div class="errorField"><?php echo str_replace("The","",str_replace("field","",form_error('password'))); ?></div>
            <div class="clear"></div>
            <div class="title col2">Name</div>
            <div class="input">
                <input type="text" name="name" value="<?php echo set_value('name'); ?>" />
            </div>
            <div class="errorField"><?php echo str_replace("The","",str_replace("field","",form_error('name'))); ?></div>
            <div class="clear"></div>
            <div class="title">Email</div>
            <div class="input">
                <input type="text" name="email" value="<?php echo set_value('email'); ?>" />
            </div>
            <div class="errorField"><?php echo str_replace("The","",str_replace("field","",form_error('email'))); ?></div>
            <div class="clear"></div>
            <div class="title">Phone</div>
            <div class="input">
                <input type="text" name="phone" value="<?php echo set_value('phone'); ?>" />
            </div>
            <div class="errorField"><?php echo str_replace("The","",str_replace("field","",form_error('phone'))); ?></div>
            <div class="clear"></div>
            <div class="title">Address</div>
            <div class="input">
                <textarea name="address"><?php echo set_value('address'); ?></textarea>
            </div>
            <div class="errorField"><?php echo str_replace("The","",str_replace("field","",form_error('address'))); ?></div>
            <div class="clear"></div>
            <div>
                <input type="submit" value="Register" name="btnregister" class="button_red" />
            </div>
            <?php if(isset($register_success) ){ ?>
				<div class="success">Pegawai Berhasil Didaftarkan.</div>
			<?php } ?>
        </form>

        </div>
        
        <div class="form_header">Daftar Pegawai</div>
        <div class="filter">
        	Sort By : <select id="s">
            		<option value="username">Username</option>
            		<option value="name">Name</option>
                    <option value="email">Email</option>
                    <option value="phone">Phone</option>
                    <option value="last_logged_in">Last Logged In</option>
                    <option value="member_since">Member Since</option>
                </select>
                <select id="t">
                	<option value="asc">Asc</option>
                    <option value="desc">Desc</option>
                </select>
                <input type="button" id="btnFilter" value="Filter" class="button_red" />
        </div>
        <div class="search_previous_order">
			Cari Pegawai: <input type="text" id="search_admin_list" />
        </div>
        
        <div id="content_member_list">
			<?php $this->load->view("admin/content_load/manage_admin_load");?>
        </div>
    </div>
</div>
<?php $this->load->view("general/footer");?>